<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>药库调价</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="static/css/yaoku-tiaojia.css"/>
<link rel="stylesheet" href="../static/easyui/themes/metro-red/easyui.css">
</head>
<body>
<script type="text/javascript">
//选项卡切换
$('#tt').tabs({
    border:false,
}); 
		//第一个选项卡
		$(function(){
			$('#yaopinliebiao').datagrid({
			    url:'',
			    columns:[[
			    	{field:'',checkbox:true,width:"140px",align:'left'},
					{field:'drug_id',title:'药品编号',width:"140px",align:'left'},
					{field:'drug_name',title:'药品名称',width:"140px",align:'left'},
					{field:'drug_specifications',title:'药品规格',width:"140px",align:'left'},
					{field:'drug_buying_price',title:'进货价',width:"140px",align:'left'},
					{field:'drug_selling_price',title:'销售价',width:"140px",align:'left'},
					{field:'drug_types_name',title:'药品类型',width:"140px",align:'left'},
					{field:'factory_name',title:'供应商',width:"260px",align:'left'}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15]			       
			});						
			//新增显示
			$("#tianjiaxuanze").click(function(){
				$("#tiaojia").window("open");
			});		
			//关闭选择调价药品界面
			$("#queding").click(function(){
				   $("#tiaojia").window("close");
			});
			//关闭查看详情界面
			$("#queding2").click(function(){
				   $("#tiaojiaxiangq").window("close");
			});
		});
		
		//第二个选项卡调价详情表格
		$(function(){
			$('#tiaojiaxiangqing').datagrid({
			    url:'',
			    columns:[[
			    	{field:'',title:'',checkbox:true,width:"160px",align:'left'},
					{field:'deptno',title:'编号',width:"160px",align:'left'},
					{field:'dname',title:'采购单号',width:"160px",align:'left'},
					{field:'loc3',title:'药品规格',width:"160px",align:'left'},
					{field:'loc4',title:'供应商',width:"160px",align:'left'},
					{field:'loc5',title:'药品价格',width:"160px",align:'left'},
					{field:'loc6',title:'库存',width:"160px",align:'left'},
					{field:'loc7',title:'原价格',width:"160px",align:'left'},
					{field:'loc8',title:'新价格',width:"160px",align:'left'}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15]			       
			});						
		});
		
		//选择调价药品表格
		$(function(){
			$('#tiaojiaxuanzebiaoge').datagrid({
			    url:'yaopinbiaoge',
			    columns:[[
					{field:'drug_id',title:'药品编号',width:"140px",align:'left'},
					{field:'drug_name',title:'药品名称',width:"140px",align:'left'},
					{field:'drug_buying_price',title:'进货价',width:"140px",align:'left'},
					{field:'drug_selling_price',title:'销售价',width:"140px",align:'left'}
				]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15]			       
			});						
		});		
		
		/* //双击调价详情表格
		$(function(){
			$('#tiaojiaxqbiaoge').datagrid({
			    url:'',
			    columns:[[
			    	{field:'',title:'',checkbox:true,width:"160px",align:'left'},
					{field:'deptno',title:'详情编号',width:"160px",align:'left'},
					{field:'dname',title:'药品名称',width:"160px",align:'left'},
					{field:'loc2',title:'药品规格',width:"160px",align:'left'},					
					{field:'loc3',title:'供应商',width:"160px",align:'left'},
					{field:'loc4',title:'药品价格',width:"160px",align:'left'}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:5,
			    pageList:[5,10,15]			       
			});				
		}); */
		
		
		/* //双击表格，显示详情界面
		$('#yaopinliebiao').datagrid({
			onDblClickCell: function(index,field,value){
				$("#tiaojiaxiangq").window("open");
			}
		}); */
		
</script>
	<div id="tt" class="easyui-tabs">		    
		    <div title="药品调价" data-options="closable:true" style="overflow:auto;padding:20px;display:none;">
				<div class="easyui-layout" style="margin-left:10px;">					
					
						<input id="ss" class="easyui-searchbox" style="width:300px" data-options="prompt:'药品名称/采购单号'"></input>
						<a id="tianjiaxuanze" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" style="margin-left:100px;">添加药品</a>
						<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true">保存</a>
								
				</div>			 				
						 <!-- 药品列表 -->
						 <table id="yaopinliebiao" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:300px;">    	
					    	
						</table>				
			</div>
				
		   
		    <!-- 第二个选项卡 -->
		    <div title="调价查询" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;display:none;">
				<div class="easyui-layout">					
					<form id="ff" action="" method="post">
						<div class="easyui-layout" style="padding:20px;margin-left:15px;">
						 	<input class="easyui-textbox" data-options="label:'调价人：',width:260,labelAlign:'right'">	
						 	<input class="easyui-datetimebox" name="birthday" data-options="required:true,showSeconds:false,label:'调价时间：',width:260,labelAlign:'right'"> 
							<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" style="margin-left:100px;">查询</a>
						</div>						 
					</form>
				</div>
				
					<!-- 表格 -->
					<form id="ff" method="post">						
						<!-- 调价详情列表 -->
						 <table id="tiaojiaxiangqing" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:300px;">    	
					    	<tbody>
					    	   <tr>
					    	   		<td></td>
									<td>2001</td>
									<td>20181001</td>
									<td>袋</td>
									<td>aaaaaa</td>
									<td>0.54</td>
									<td>400</td>
									<td>0.54</td>
									<td>0.67</td>
								</tr>								
					    	</tbody>
						</table>						
					</form>							
		    </div>
	</div>	
	
	<!-- 选择调价药品界面 -->
	<div id="tiaojia" class="easyui-window" title="选择调价药品" style="width:700px;height:350px" data-options="iconCls:'icon-add',closed:true">
    	<!-- <div class="easyui-layout" style="padding:20px;margin-left:15px;">
		 	<input id="ss" class="easyui-searchbox" style="width:300px" data-options="prompt:'药品名称'"></input>	 
		 	<a href="#" class="easyui-linkbutton" id="queding" data-options="iconCls:'icon-ok',plain:true">确定</a>
		</div> -->    
 		<table id="tiaojiaxuanzebiaoge" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:300px;">    	
				
		</table> 		
	</div>
	
	<!-- 药品调价查看详情 -->
	 <div id="tiaojiaxiangq" class="easyui-window" title="查看详情" style="width:700px;height:350px" data-options="iconCls:'icon-add',closed:true">
    	<div class="easyui-layout" style="padding:20px;margin-left:15px;">
		 	<input class="easyui-textbox" data-options="label:'库存：',width:260,labelAlign:'right'"> --
			<input class="easyui-textbox" data-options="width:176,labelAlign:'right'">			
			<a href="#" class="easyui-linkbutton" id="queding2" data-options="iconCls:'icon-ok',plain:true">确定</a>
		</div>
    	<table id="tiaojiaxqbiaoge" class="easyui-datagrid" data-options="fitColumns:true" style="padding:15px;height:300px;">    	
			<tbody>
				<tr>
					<td></td>
					<td>1000991</td>
					<td>当归</td> 
					<td>袋</td>
					<td>aaaa</td>	
					<td>0.54</td>
				</tr>
			</tbody>
		</table> 		
	</div>
</body>
</html>